package org.example.adapter.classadapter;

/**
 * @author wangbin
 * @date 2024/4/17
 * @vesion 1.0
 */
public class VoltageAdapter extends Voltage220V implements IVolltag5V{
    @Override
    public int outPut5V() {
        System.out.println("进入5V降压环节");

        int srcv = super.outPut220V();
        System.out.println("降压使用");
        srcv=srcv/40;
        return srcv;
    }
}
